package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "cn_omc_revise")
public class OmcRevise extends BaseEntity {

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人名称
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 调整原因 1 身体条件变差 2 老人不适应 3 主动调整
     */
    private Integer reason;

    /**
     * 调整日期
     */
    @Column(name = "`date`")
    private String date;

    /**
     * 套餐退费
     */
    @Column(name = "pack_fee")
    private BigDecimal packFee;

    /**
     * 请假退费
     */
    @Column(name = "leave_fee")
    private BigDecimal leaveFee;

    /**
     * 请假天数
     */
    @Column(name = "leave_days")
    private Integer leaveDays;

    /**
     * 补缴天数
     */
    @Column(name = "pay_days")
    private Integer payDays;

    /**
     * 状态 1 未提交 2 申请中 3 部长审核通过 4 审核未通过 5 接待室确认 6 收费室确认
     */
    @Column(name = "`state`")
    private Integer state;

    /**
     * 差价
     */
    private BigDecimal agio;

    /**
     * 总金额
     */
    private BigDecimal total;

    /**
     * 流程引擎Id
     */
    @Column(name = "process_instance_id")
    private String processInstanceId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 班组Id
     */
    @Column(name = "nursing_group_id")
    private Long nursingGroupId;

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 账单Id
     */
    @Column(name = "bill_id")
    private Long billId;
}